//diag_log format["Setting up fnc_player_killed"];
//fnc_player_killed = {
	if !(isDedicated) then {
		if ((_this select 1) == player) then {
			if !((_this select 0) == player) then {
				if (side (_this select 0) == side (_this select 1)) then {
					/* Boo teamkill */
					player addRating 2000;	// Prevents side change
					player sideChat format["-150$ for team-killing %1", name (_this select 0)];
					[-150] call fnc_modify_money;
				} else {
					/* We are the killer! Add moneyz */
					player sideChat format["+50$ for killing %1", name (_this select 0)];
					[50] call fnc_modify_money;
				};
			};
		};
	};

	if (isServer) then {
		/* Make sure the last victim is properly in sync with the server until making this check */
		waitUntil { (_this select 0) getVariable ["status", -1] == 0 };

		/* Check the amount of dead players for each respective side here and quit the game if a whole side is dead */
		_aliveWest = 0;
		_aliveEast = 0;

		{
			/* Loop  */
			_status = _x getVariable ["status", 0];
			if (_status == 1) then {
				switch (side _x) do
				{
					case west: {
						_aliveWest = _aliveWest + 1;
					};
					case east: {
						_aliveEast = _aliveEast + 1;
					};
				};
			};
		} forEach playableUnits;

		if (_aliveWest == 0) then {
			ROUND_WIN = 3;
			publicVariable "ROUND_WIN";
			[] call fnc_eh_win;
		};

		if (_aliveEast == 0) then {
			ROUND_WIN = 2;
			publicVariable "ROUND_WIN";
			[] call fnc_eh_win;	
		};
	};
//};